home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / amos / amoslist-0295.lzh / AMOSLIST / text0108.txt < prev    next >
Encoding:
Text File  |  1995-03-01  |  2.5 KB  |  62 lines

  1. > Subject: Re: Amos Sprite banks
  2. >  for your warriors. I think Amos Sprite bank contains only 256 sprites, so
  3. >  i have to copy all main warriors in every sprite bank (one for level) and
  4. >  put others sprites in the others cells of the sprite bank (>120..).In this way
  5. >  i will get five sprite banks,every one with more then 200 sprite's images!!!!!
  6. >  
  7. > This is a hypothesis, but worth a try. The sprite bank contains a pointer to
  8. > the sprite image, and to it's mask. When you use a command to display a
  9. > sprite, AMOS will either:
  10. >     - Copy the pointers from the sprite bank into the Amiga OS sprite
  11. >       image structure, or an interal structure to represent the image
  12. >       of each hardware sprite.
  13. >     - Put the address / number of the entry of sprite bank in the
  14. >       internal structure.
  15. > If the first method is used, you can setup the first sprite, then swap the
  16. > bank and setup the second without the display to the first being corrupted.
  17. > I suggest you try it and see. However AMAL animations may complicate things,
  18. > but if when compiling the AMAL program AMOS jsut creates a list of pointers
  19. > to the actually images instead of the list of sprite bank numbers you type
  20. > in, it will still be OK.
  21. > I've never heard of this 256 sprite limit before, and looking at the 
  22. > internal structure of the bank, I can see no reason why 65535 sprites
  23. > is not possible. This is a limit to the vertical size of each sprite,
  24. > the number of sprites on the screen, and the number of bobs on the
  25. > screen (The first and last of these can be edited from the AMOSPro 
  26. > configuration editor). It may be that the bob editor limits you to
  27. > 256 sprites.
  28. I think this method can work fine and i think swapping banks is a good
  29. method too, but i have a question for you and everyone who is on
  30. amos-list: swapping banks makes program running slower?
  31.  
  32. > +-------------------------+------------------------------------+
  33. > |                         |    _____                           |
  34. > | PAUL HICKMAN            |   /     \   ON A HOT SUMMER NIGHT  |
  35. > | (ph@doc.ic.ac.uk)       |  /  O O  \  WOULD YOU  OFFER YOUR  |
  36. > | DEPARTMENT OF COMPUTING | |    _    | THROAT  TO  THE  WOLF  |
  37. > | IMPERIAL COLLEGE LONDON |  \  / \  /  WITH THE RED  ROSES ?  |
  38. > |                         |   \_____/                          |
  39. > +-------------------------+------------------------------------+
  40. > Machines: Amiga 500  WB1.3 - 1mb Memory - External Disk Drive.
  41. >           Amiga 1200 WB3.0 - 6mb Memory - 200Mb Hard Disk.
  42.     Luca (aldo@di.unito.it)
  43.     -----------------------
  44.  
  45.  
  46.  
  47.  
  48.